/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

/* 弹窗容器 */
.consultation-container {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consultation-header {
    background: #fff;
    color: #303133;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #ebeef5;
    position: relative;
}

.consultation-header h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding-bottom: 20px;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #909399;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #409eff;
}

/* 弹窗内容滚动 */
.modal-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.consultation-form {
    padding: 20px 20px 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: inline-block;
    width: 100px;
    font-size: 14px;
    color: #606266;
    font-weight: normal;
    vertical-align: top;
    padding-top: 11px;
    text-align: right;
    padding-right: 12px;
}

.form-control {
    width: calc(100% - 110px);
    padding: 8px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.form-control:focus {
    outline: none;
    border-color: #409eff;
}

.form-control:hover {
    border-color: #c0c4cc;
}

.form-control.textarea {
    height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    text-align: right;
    padding: 15px 0;
    border-top: 1px solid #ebeef5;
    margin-top: 0;
}

.btn {
    padding: 12px 20px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.1s;
    min-width: 78px;
}

.btn-cancel {
    background: #fff;
    color: #606266;
    border-color: #dcdfe6;
}

.btn-cancel:hover {
    background: #fff;
    color: #409eff;
    border-color: #c6e2ff;
}

.btn-save {
    background: #409eff;
    color: white;
    border-color: #409eff;
}

.btn-save:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}

.required {
    color: #f56c6c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .consultation-container {
        margin: 0;
        border-radius: 0;
    }

    .consultation-form {
        padding: 20px 20px 0;
    }

    .form-label {
        width: 100%;
        margin-bottom: 5px;
        padding-top: 0;
    }

    .form-control {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }
}